package com.legal.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@Schema(name = "RegisterFormDTO", description = "注册表单实体")
public class RegisterFormDTO {
    @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED,
    example = "admin")
    @NotNull(message = "用户名不能为空")
    private String username;

    @NotNull(message = "密码不能为空")
    @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456")
    private String password;

    @NotNull(message = "手机号不能为空")
    @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED,example = "19823113218")
    private String phoneNumber;

    @Schema(description = "验证码", requiredMode = Schema.RequiredMode.REQUIRED,example = "654321")
    @NotNull(message = "验证码不能为空")
    private String captcha;
}
